home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / ka9q / kit_src / puttxt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-03  |  975 b   |  38 lines

  1. /*    (C) Copyright 1991 Dave Fritsche (wb8zxu), All Rights Reserved.
  2.  * 
  3.  *    Redistribution and use in source and binary forms are permitted for
  4.  *    non-commercial use, provided that the above copyright notice and this
  5.  *    paragraph are duplicated in all such forms.  THIS SOFTWARE IS PROVIDED
  6.  *    ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  7.  *    WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
  8.  *    FITNESS FOR A PARTICULAR PURPOSE.
  9.  */
  10. /*bdoc
  11.  *    Function "PUTTXT"
  12.  *
  13.  *    Written:  Dave Fritsche
  14.  *    Date:  July, 1987
  15.  *
  16.  *    A function to place the cursor (x,y), set an attribute (sa), write
  17.  *    a string of text (txt), then set an exit attribute (fa).
  18.  *    Syntax:
  19.  *        puttxt(x, y, sa, fa, txt)
  20.  edoc*/
  21.  
  22. #include <stdio.h>
  23.  
  24. puttxt(x, y, sa, fa, txt)
  25. int x, y, sa, fa;
  26. char txt[];
  27. {
  28.     putcur(x, y);
  29.     setatt(sa);
  30. #ifdef CPRINTF
  31.     cprintf("%s", txt);
  32. #else
  33.     printf("%s", txt);
  34. #endif
  35.     if (sa != fa)
  36.         setatt(fa);
  37. }
  38.